package com.yixun.qfbao.mapper;

import com.yixun.qfbao.model.Node;
import com.yixun.qfbao.model.RoleCaseMember;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleCaseMemberMapper {

    List<RoleCaseMember> listRoleCaseMember(@Param("roleId") Long roleId);

    List<Node> listRoleDept(@Param("roleId") Long roleId, @Param("merchantId") Long merchantId);

    void deleteRoleCaseMemberByRoleId(@Param("userId") Long userId, @Param("roleId") Long roleId);

    void saveAllRoleCaseMember(@Param("list") List<RoleCaseMember> roleCaseMembers);

    List<RoleCaseMember> listRoleCaseMemberByRoleIds(@Param("roleIds") List<Long> roleIds);

    List<RoleCaseMember> seleteDeptIdsByRoleIds(@Param("roleIds") List<Long> roleIds);
}
